package dao;

import dao.zj.BrandDao;
import dao.zj.ProductDao;

public class DAOFactory {
private static ProductDao productDAO;
private static BrandDao brand;	
	public static ProductDao createDAO(){
		if(productDAO == null){
			productDAO = new ProductDao();
		}
		return productDAO;
	}
	public static BrandDao createBrandDAO(){
		if(brand == null){
			brand = new BrandDao();
		}
		return brand;
	}
}
